package com.lupan.guice.bindings.buildInBuilding;

import com.google.inject.Inject;
import com.lupan.guice.bindings.TransactionLog;

import java.util.logging.Logger;

/**
 * 说明：
 *
 * @author lupan
 * @version 2016/11/10 13:55
 */
public class ConsoleLog implements TransactionLog{

    @Inject
    private Logger logger;

//    @Inject
//    public ConsoleLog(Logger logger) {
//        this.logger = logger;
//    }


    @Override
    public String log() {
        logger.warning("警告！");
        return "build-in building";
    }
}
